import React from 'react';
import { ViewAutoChart } from 'view-ui';
import * as  echarts from 'echarts';

interface AutoChartProps {
    option: echarts.EChartsOption,
    styles?: object
}

const ViewLine: React.FC<AutoChartProps> = (props) => {
    const { option, styles } = props;
    return (
        <ViewAutoChart 
            option={option as echarts.EChartsOption}
            styles={styles}
        ></ViewAutoChart>
    )
}

export default ViewLine;